<script setup>
// uni.navigateBack(2)

const gohome = () => {
  // // uni.navigateBack()
  // let pages = getCurrentPages();

  // // 获取页面栈的长度，即页面跳转层级
  // let level = pages.length;
  // if (level > 1) {
  //   uni.navigateBack();
  // } else {
  //   uni.switchTab({
  //     url: "/pages/my/index",
  //   });
  // }
  uni.redirectTo({
    url: "/pages/servicereward/myreward/balance",
  });
};
</script>
<template>
  <view class="paycontent">
    <view class="pay-hx"> </view>
    <view class="pay-res">
      <view class="pay-res-img">
        <image src="@/static/servicereward/res-icon.png" mode=""></image>
      </view>
      <view class="pay-res-name"> 提交成功 </view>
      <view class="pay-res-dec"> 我们将在5个工作日内为您处理 </view>
      <view class="pay-res-bt" @click="gohome"> 返回 </view>
    </view>
  </view>
</template>

<style lang="scss" scoped>
@import "realnamepay.scss";
</style>
